<?php
global $woo_options, $loop;
$the_query = new WP_Query(array(
    'post_type' => 'san-pham',
    'orderby' => 'date',
    'order' => 'desc',
    'posts_per_page' => -1,
    'status' => array('publish','private'),
    'tax_query' => array(
        array(
            'taxonomy' => 'loai-san-pham',
            'field' => 'slug',
            'terms' => array('san-pham-ban-chay')
        )
    )
));
?>
<div class="wrap-products">
    <div class="title">
        SẢN PHẨM BÁN CHẠY
    </div>
    <div id="featured-products" class="products flexslider">
        <ul class="slides">
        <?php $loop=0; while($the_query->have_posts()) { $the_query->the_post();?>
                <?php get_template_part("templates/loop","product2");?>
        <?php  $loop++; } wp_reset_query(); ?>
        </ul>
    </div>
    <div class="clearfix"></div>
</div>
